<?php namespace Admin\Libraries;

use Laravel\Bundle as Bundle;

require Bundle::path('admin').'libraries/sensor/'.strtolower(PHP_OS).'.php';

use Laravel\Config,Admin\Libraries\Sensor\IO as Sensor;
use Admin\Models\Monitor\Server,
Admin\Models\Monitor\Load,
Admin\Models\Monitor\Memory,
Admin\Models\Monitor\Cpu,
Admin\Models\Monitor\Capacity,
Admin\Models\Monitor\Hdd,
Admin\Models\Monitor\Proc;

/*********************************************************************
*  Class : Sneakpeak
*  Function : System Server Status Class
*  Author :  joharijumali
*  Description: Class to read hdd, cpu, memory, loads info of current host
**********************************************************************/

class Sneakpeak{

/**
 * undocumented function
 *
 * @return void
 * @author 
 **/

	public static function initsequence(){

		$date = date("Y-m-d H:i:s");

		$server = new Server;
		$id = $server->cron($date);

		Load::cron($id,Sensor::restLoad(),$date);
		Memory::cron($id,Sensor::restMemory(),$date);
		Cpu::cron($id,Sensor::restCpu(),$date);
		Proc::cron($id,Sensor::restProcess(),$date);
		Capacity::cron($id,Sensor::diskCapacity(),$date);
		Hdd::cron($id,Sensor::restDisk(),$date);
		

	}


	
}

?>